﻿using Blog.Dto.Article;
using Blog.Model;
using IBaseRepository;
using IBaseService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace BaseService
{
	public class ArticleService : BaseService<Article>, IArticleService
	{
		private readonly IArticleRepository _articleRepository;

		public ArticleService(IArticleRepository articleRepository)
		{
			base.baseRepository = articleRepository;
			_articleRepository = articleRepository;
		}

		public Task<ArticleRelationAuthor> QueryArticleAuthor(Expression<Func<Article, bool>> func)
		{
			return _articleRepository.QueryArticleAuthor(func);
		}
	}
}
